import { defineStore } from 'pinia'

const activityStore = defineStore('activity', {
  state: () => ({
    activityStatus: [
      { value: '1', label: '未开始报名', color: 'alert' },
      { value: '2', label: '报名中', color: 'normal' },
      { value: '3', label: '报名已结束', color: 'normal' },
      { value: '4', label: '无需报名', color: 'normal' },
      { value: '5', label: '名额已满', color: 'alert' },
      { value: '6', label: '活动已结束', color: 'gray' },

      { value: '11', label: '活动未开始', color: 'alert' },
      { value: '12', label: '活动中', color: 'normal' },
    ],
    activityUserStatus: [
      { value: '1', label: '未开始报名', btnLabel: '活动未开始', color: 'alert', btnDisabled: 1 },
      { value: '2', label: '报名中', btnLabel: '立即报名', color: 'normal', btnDisabled: 0 },
      { value: '3', label: '报名已结束', btnLabel: '报名已结束', color: 'gray', btnDisabled: 1 },
      { value: '4', label: '无需报名', btnLabel: '直接前往', color: 'normal', btnDisabled: 1 },
      { value: '5', label: '名额已满', btnLabel: '名额已满', color: 'gray', btnDisabled: 1 },
      { value: '6', label: '活动已结束', btnLabel: '活动已结束', color: 'gray', btnDisabled: 1 },
      { value: '7', label: '审核中', btnLabel: '审核中', color: 'alert', btnDisabled: 2 },
      { value: '8', label: '已取消', btnLabel: '已取消', color: 'gray', btnDisabled: 1 },
      { value: '9', label: '已拒绝', btnLabel: '已拒绝', color: 'xred', btnDisabled: 1 },
      { value: '10', label: '已通过', btnLabel: '已通过', color: 'normal', btnDisabled: 3 },

      { value: '11', label: '活动未开始', color: 'alert' },
      { value: '12', label: '活动中', color: 'normal' },
    ],
    activityApplyStatus: [
      { label: '已通过', value: '1', color: 'normal' },
      { label: '已取消', value: '2', color: 'gray' },
      { label: '已拒绝', value: '3', color: 'alert' },
      { label: '审核中', value: '4', color: 'normal' },
    ],
    // state 1 未开始报名 2.报名中 3.报名已结束 4.无需报名且活动未结束 (直接前往)  5 名额已满 6.活动已结束
    home3Status: {
      1: { label: '未开始报名', class: 'alert' },
      2: { label: '报名中', class: 'normal' },
      3: { label: '报名已结束', class: 'normal' },
      4: { label: '无需报名', class: 'normal' },
      5: { label: '名额已满', class: 'gray' },
      6: { label: '活动已结束', class: 'gray' },
      11: { label: '活动未开始', class: 'alert' },
      12: { label: '活动中', class: 'normal' },
    },
    currentType: '',
  }),
})

export { activityStore }
